package nz.ac.massey.doi_information_extractor.main;

import java.net.Authenticator;
import java.net.PasswordAuthentication;

public class MasseyProxyAuthenticator extends Authenticator {
	// This class can be used to authenticate plugins to get through the Massey proxies. 
	// Springer plugins rely on this. 
	
	String user = "";
	String password = "";
	
	public MasseyProxyAuthenticator(String newuser, String newpassword) {
		this.user = newuser;
		this.user = newpassword;
	}
	
    public PasswordAuthentication getPasswordAuthentication () {
        return new PasswordAuthentication (user, password.toCharArray());
    }
}
